import http from '@/services/http';

export function getFilterList() {
  return http.get<Requestor.Response<Requestor.FilterResponse[]>>(
    '/api/admin/CustomerBase/coupon/filter/list',
  );
}
export function getList<T>(params: CustomerCouponManagementApi.ListParams) {
  return http.post<Requestor.ListResponse<T>>('/api/admin/CustomerBase/coupon/list', {
    data: params,
  });
}
export function getInfo<T>(params: CustomerCouponManagementApi.InfoParams) {
  return http.get<Requestor.Response<T>>('/api/admin/CustomerBase/coupon/info', {
    params,
  });
}
